
const express = require('express')
const app = express()
// 1、导入路由模块
const router = require('./router.js')
// 2、注册路由模块
app.use(router)
// 为路由模块添加访问前缀
// app.use('/api',router)

app.listen(8080 , ()=>{
  console.log('server running at http://127.0.0.1:8080')
})